///int 拓展
extension IntExt on int {
  /// 毫秒值 转为 [DateTime]
  DateTime toDateTime() {
    return DateTime.fromMillisecondsSinceEpoch(this);
  }

  ///转为布尔值  true = 1
  bool toBool() {
    return this == 1;
  }
}
